package com.smartcommunity.entity.village;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: Building
 * @Description: 楼栋实体类
 * @author: zdy
 * @Date: 2020/1/8
 */
@Data
@ApiModel
public class Building implements Serializable {
    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value="楼栋ID ",name="id")
    private Integer id;

    @ApiModelProperty(value="小区编码,多小区以逗号分隔",name="villageCode")
    private String villageCode;

    @ApiModelProperty(value="楼栋编号",name="buildingNo")
    private String buildingNo;

    @ApiModelProperty(value="楼层数",name="floorTotal")
    private Integer floorTotal;

    @ApiModelProperty(value="单元数",name="unitTotal")
    private Integer unitTotal;

    @ApiModelProperty(value="户数",name="houseTotal")
    private Integer houseTotal;

    @ApiModelProperty(value="经度",name="lon")
    private Double lon;

    @ApiModelProperty(value="纬度",name="lat")
    private Double lat;

    @ApiModelProperty(value="是有人口数量",name="realPeopleCounts")
    private Long realPeopleCounts;
    @ApiModelProperty(value="记录新增或更新时的时间",name="rowTime",hidden = true)
    private Date rowTime;

    @ApiModelProperty(value="录入库时间",name="mrowTime",hidden = true)
    private Date mrowTime;

    @ApiModelProperty(value="当前页数",name="pageNumber",example = "1")
    private Integer pageNumber = 1;

    @ApiModelProperty(value="每页显示条数",name="pageSize",example = "10")
    private Integer pageSize = 10;

    public Building(){}

    public Building(String villageCode, String buildingNo, Integer floorTotal, Integer houseTotal, Double lon, Double lat) {
        this.villageCode = villageCode;
        this.buildingNo = buildingNo;
        this.floorTotal = floorTotal;
        this.houseTotal = houseTotal;
        this.lon = lon;
        this.lat = lat;
    }

}
